package com.collection.util;

import java.math.BigDecimal;

public class Constants {
 
    public static final String  TENSCENT_CID      = "d61ee427a1944f6fa368a680f8f6f5f5";
    
	 /**
	  * redis里的token前缀
	  */
	 public static final  String USERKEY_PREFIX = "user_";
	 
	 
	 public static  final Integer USERKEY_EXPIRETIME = 60 * 60 * 24 * 30;// 一个月
	 
	 /**
	  * 手机登陆验证码前缀
	  */
	 public static  final String LOGIN_CAP = "login_cap_";
	 
	 /**
	  * 注册验证码
	  */
	 public static  final String REGISTER_CAP = "register_cap_";
	 
	 /**
	  * 绑定银行卡验证码前缀
	  */
	 public static  final String BIND_CARD_CAP = "bind_card_cap_";
	 
	 /**
	  * 修改支付密码
	  */
	 public static  final String MODIFY_PAY_PWD_CAP = "modify_pay_pwd_";
	 
	 /**
	  * 分期还款
	  */
	 public static final String RETURN_MONEY_CAP = "return_money_cap_";
	 
	 /*风控地址*/
	 //线上
	  public static String RISK_URL = "http://47.93.149.215:8085/app/";
	  
	  //测试
//	  public static  final String RISK_URL = "http://192.168.30.45:80/app/";
	 
	 /**
	  * 购买套餐的常量值
	  */
	 public static  final String PACKAGE_PARAM = "9999999999";
	 
	 /*连连支付MD5秘钥*/
	 public static final  String MD5Key = "69cl522AV6q613Ii4W6u8K6XuW8vM1N6bFgyv769220IuYe9u37N4y7rI4Pl";
 
	 /**
	  * 车辆评估URL
	  */
	 public static  final String CAR_CAR ="http://v.juhe.cn/usedcar/car?key=ddf16326b88be6f24034b2bf2daa6507";
	 public static  final String CAR_SERIES ="http://v.juhe.cn/usedcar/series?key=ddf16326b88be6f24034b2bf2daa6507";
	 public static  final String CAR_BRAND ="http://v.juhe.cn/usedcar/brand?key=ddf16326b88be6f24034b2bf2daa6507";
	 public static  final String CAR_EVALUATION ="http://v.juhe.cn/usedcar/assess?key=ddf16326b88be6f24034b2bf2daa6507";
	 public static  final String CAR_PROVINCE ="http://v.juhe.cn/usedcar/province?key=ddf16326b88be6f24034b2bf2daa6507";//请求接口地址
	 public static  final String CAR_CITY ="http://v.juhe.cn/usedcar/city?key=ddf16326b88be6f24034b2bf2daa6507";//请求接口地址
	 
	 public static  final String SMS_CHUANGLAN_URL="http://smssh1.253.com/msg/send/json";
	 
	 public static  final String SMS_CHUANGLAN_ACCOUNT="N1703734";
	 
	 public static  final String SMS_CHUANGLAN_PWD="ViuGvnJ8yF9b5d";
	 
	 public static String ALIPAY_MCH_ID="cm2017060810000068";
	 public static String ALIPAY_APPID="ca2017060810000068"; 
	 public static String ALIPAY_KEY="8620629b1834e303947f5462d846c38b";
	 /* public static  final String ALIPAY_MCH_ID="cm2017051810000033";
	 public static  final String ALIPAY_APPID="ca2017051810000033"; 
	 public static  final String ALIPAY_KEY="83629d025af1812290bd04e8517f068f";
	 */
	 public static  final String ALIPAY_COMMON_URL="https://api.tectopper.com/pay/gateway";
	 
	 //测试
	 // public static  final String ALIPAY_NOTIFY_URL="http://119.57.156.10:15013/api/app/callPayResult";
	 
	 //线上
	// public static  final String ALIPAY_NOTIFY_URL="http://47.93.149.215:8080/api/app/callPayResult";
	    
	 //测试
	 // public static final boolean  DEBUG = true;
	
	 //正式
	 public static final boolean DEBUG = false;
	 
	 public static  final String PHONE_CAPTCHA = "PHONE_CAPTCHA";
     /** 审批者角色类型： 初审 */
	 public static  final String ROLE_TYPE_AUDIT_1 = "1";
	 
	 
	 public static  final String YES = "1";
	 
	 public static  final String NO = "0";
	 
	 //年华收益
	 public static final BigDecimal apr = new BigDecimal(0.12);
	 
	 //默认天数
	 public static final BigDecimal day = new BigDecimal(360);
	 
	 public static final Integer NOT_PAY =  0 ;
	 
	 public static final String BLACK_CONTENT ="造成认证白条失败可能有以下原因：您的网络出现问题，请在网络良好时再次尝试；您的资信状况发生变化。如非以上原因导致，请联系客服：400-1000-000" ;
	 
	 public static final String BLACK_CONTENT_SUCCESS = "认证授信体验金是优呼呼为新用户专享推出的加油白条体验。新用户完善个人信息后即可体验白条加油";
	 

	    
    public static enum PaymentMethod {
        ALI("支付宝",  1), WX("微信",2),LL("连连",3),IC("IC卡充值",4),SYS("系统充值",5);
        // 成员变量
        private String name;
        private int index;

        // 构造方法
        private PaymentMethod(String name, int index) {
            this.name = name;
            this.index = index;
        }

        // 普通方法
        public static String getName(int index) {
            for (PaymentMethod c : PaymentMethod.values()) {
                if (c.getIndex() ==index ) {
                    return c.name;
                }
            }
            return null;
        }

        // get set 方法
        public String getName() {
            return name;
        }

        public int getIndex() {
            return index;
        }

    }
    
    public static enum TransType {
        OILFEE("支付油费",  8), NEW("新手还款",4),PACKAGE("充值套餐",1),OILCARD("油卡充值",7),ICCARD("IC卡充值",9),STAGESPACKAGE("分期套餐",10),STAGESPACKAGEDETAIL("分期套餐明细",11),APPLYREDUCE("白条充值扣减",12);
        // 成员变量
        private String name;
        private int index;

        // 构造方法
        private TransType(String name, int index) {
            this.name = name;
            this.index = index;
        }

        // 普通方法
        public static String getName(int index) {
            for (TransType c : TransType.values()) {
                if (c.getIndex() ==index ) {
                    return c.name;
                }
            }
            return null;
        }

        // get set 方法
        public String getName() {
            return name;
        }

        public int getIndex() {
            return index;
        }

    }
    
 
}
